﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Viki_Model;
using Viki_IDal;

namespace Viki_DAL
{
    public class TeacherDao:ITeacherDao
    {
        public Teacher findTeacher(string teacher_id)
        {
            TeacherDataContext teacherContext = new TeacherDataContext();
            var info = from b in teacherContext.Teacher
                                       where b.teacher_id == teacher_id
                                       select b;
            Teacher teacher = info.First(); 
            return teacher;
        }
    }
}
